package com.etlmaster.datax.plugins.tranformer;

import com.dp.nebula.wormhole.common.interfaces.ILine;
import com.dp.nebula.wormhole.common.interfaces.IParam;

/**
 * 行级处理 删除字段
 * @author wugf
 * @date 2016-04-29
 */
@ComponentAnnotation("delete")
public class TransFieldRemove  extends LineTransProcessor{

	public TransFieldRemove(Integer fieldIndex, String changeCode,String paramStr, IParam param) {
		super(fieldIndex, changeCode,paramStr, param);
	}

	@Override
	public void transField(ILine line,IParam param) {
		line.deleteField(getFieldIndex());
	}

	@Override
	public boolean isSkip() {
		return false;
	}

}
